package com.usdt.system.dto.cp;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.BooleanEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;

import lombok.Data;

/**
 * 活动信息Excel导出DTO（映射Excel表头）
 * 说明：@ExcelProperty的index属性必须与Excel列顺序一致（0开始）
 */
@Data
@ContentRowHeight(15)//高度(自动换行后，隐藏多余数据)
//自动换行 垂直居中
@ContentStyle(wrapped = BooleanEnum.TRUE,verticalAlignment = VerticalAlignmentEnum.CENTER)
public class ActivityDetailExcelDTO {

    @ExcelProperty(index = 0, value = "字段")
    @ColumnWidth(15)
    private String name;

    @ExcelProperty(index = 1, value = "值")
    @ColumnWidth(30)
    private String value;
}
